The traditional treatment was to hit it with the family bible. This wasonly because it was the biggest book that most people owned, anything big and heavy will do; we now recommend the oxford textbook of medicine as its bigger (and not so filled with lies).
However, this only hurts (at worst) and bursts it at best. Doesn’t actually get rid of the problem, which is usually a little outpouching of the tendon sheath full of fluid. Disappears when burst but usually comes back, ditto if the fluid is sucked out. Surgical removal gets rid of them permanently but only really considered if it is causing issues.
If it is big enough to restrict your range of movement then the answer for a permanent cure is to chop it out… Hitting it with the OTM may cure it, but will probably just hurt.