Dealing with negative thoughts

We all have bad/negative thoughts. Sometimes they have to run their course. Other times you have to recognize that there is no good end to them and shut them down as if you’re having a bad dream and make yourself wake up to stop it.