Simply note them, remain calm, and use your breathing as an anchor.
The goal is not to stop your thoughts but to get more comfortable becoming the "witness" to the thoughts. When thoughts come up in your mind, don't ignore or suppress them. Simply note them, remain calm, and use your breathing as an anchor. Imagine your thoughts as clouds passing by; watch them float by as they shift and change.Repeat this as often as you need to while you are meditating.