What should you do when your ex-spouse fabricated a story about you making terroristic threats if criminal charges are pending but the temporary restraining order was revoked?

This is a serious offence so it's advisable you seek legal counsel immediately! If you are innocent and the person accusing you has lied they may well be charged. Retain an attorney or if charged request a PDA and cease from discussing the matter with anyone until you have received legal counsel.