I was recently diagnosed with a panic disorder. How do I prevent attacks?

Counseling. Nothing is guaranteed to keep them away, but start with a psychologist and get the help you need to avoid triggers and calm yourself when you can.