An important step for me was practicing mindfulness meditation. It's literally training the skill of recognizing your thoughts and being able to step back from them to observe. That distance is important for, say, figuring out what your triggers are or deciding how to handle these thoughts.
Honestly, everybody should be practicing mindfulness meditation and cognitive-based therapy. It's a powerful combination. Also, see a therapist. A decent one is worth their weight in gold. Even though I was practicing these things, it was clear it wasn't a perfect fix and adding a third-party perspective was a huge help in learning how to regulate my thoughts and emotions. Some things we simply can't solve completely on our own.
Honestly, everybody should be practicing mindfulness meditation and cognitive-based therapy. It's a powerful combination. Also, see a therapist. A decent one is worth their weight in gold. Even though I was practicing these things, it was clear it wasn't a perfect fix and adding a third-party perspective was a huge help in learning how to regulate my thoughts and emotions. Some things we simply can't solve completely on our own.