There are multiple suggestions by various schools of thought on this topic. However, our Vedas recommend the best approach to come out of such addictions or, non-satvik habits. An incident from Krishnadevaraya’s history nicely portrays the approach.
Krishnadevaraya, Emperor of Vijayanagara Empire (who in fact authored Amuktamalyada – a book on Goda Devi who gave us this beautiful vratam – Thiruppavai) wanted to hire a Prime Minister for his court. He designed a test to aid in selection process.