I have a way that I deal with panic attacks that I am going to outline here. I hope it helps some people. I know it helps me.
What I do is when I feel myself having a panic attack I stop what I am doing and I start counting to 90. I believe that to be the length of time that a panic attack physically lasts. Once I get to 90 I take stock in myself. I check my thoughts and see where they are. Then I realize that the panic attack is over and I get on with my day. I know I make it sound easy, but it is a lot more complicated than that.
I am constantly trying to figure out ways to stop and manage my panic attacks and this is one of the many techniques that I use. I hope you can use it to help yourself.