I can relate to trying to make less of and/or ignore my dark thoughts. I've been struggling with this recently.
Are these thoughts being triggered by something that you know of or do they seem to manifest/worsen on their own?
It's good that you're aware of where your thoughts are headed and that they need to be stopped. Please stay safe.