Medication.
Being very very aware of how much sleep I'm getting and adjusting meds as needed to get enough sleep because lack thereof is my biggest trigger.
Minimizing stress. I only work 4 days a week now and this has been enormously helpful. I'm also in a less stressful work environment than I have been in the past.
Psychodynamic therapy for a couple of years which turned into a kind of trauma therapy. It was very painful at the time, but later on I realized that it was very helpful. I feel like I have put that kind of the trauma I had experienced behind me. More to work on, though!
The therapy I'm in now. Super chill compared to the last one, fantastic therapist, I had started seeing her for anxiety, but she has been very helpful with other issues.
Being far more aware of my moods, and their causes, than when I was young.