For someone dependent on prescription medication,
https://andregdgm298.capitaljays.com/posts/life-after-chemical-dependency-treatment
If you cannot cut back on a prescription on your own, chemical dependency treatment can help you stop safely. Dependence on a prescription is a medical condition, not a moral failing. Ask a licensed treatment provider about options.