A year ago I deliberately put aside 20 minutes a day to do a guided meditation and I did a slow walking meditation with my dogs when I could (if I was alone). It made me stronger in my ability to control or ignore that voice in my head.
Actually, now that I think about it, it was like I was exercising a muscle that will get stronger and stronger. I haven't done much more than a three minute breathing space and mindful walking in a year. I need to start again.
I love the book "The Untethered Soul" by Michael Singer. He says we have this crazy inner roommate who constantly say things, and repeats things that are unhelpful. If the voice was a real roommate we would at least not give them the attention we do, and most of us would kick them out!
I like the suggestion of telling it off. Makes sense.