Anxiety attacks are addressed by taking care of the triggers of the anxiety attacks. Anxiety attacks are different than panic attacks, in that anxiety attacks are triggered (usually by a feared stimulus), whereas panic attacks come out of the blue and are spontaneous (not needing a trigger).
Anxiety attacks can be triggered by stress, so the solution for this is to address the stress that is causing it. Anxiety attacks can also be triggered if you have any of the following anxiety disorders: specific phobia, social anxiety disorder (also known as social phobia), panic disorder, post traumatic stress disorder (PTSD), and obsessive compulsive disorder (OCD). Anxiety attacks that are triggered by a major anxiety disorder can be addressed by treating the specific anxiety disorder that is triggering it.