The tl;dr is that it's much harder to quit an addiction with the mindset, "This thing is great, but I'm going to deprive myself of it." Instead, you need to realize that you've been deceived and maybe even brainwashed into thinking that this vice has any redeeming value. Lots of people who've never become addicted are walking around enjoying life without it. So you kind of have to do your own reverse brainwashing to get your brain back to that state.
I used these techniques to break a bad habit. Every time my mind so much as wanders in that direction, I have a mini speech I give myself. "Boy, I am so glad that I have escaped the slavery of that dopamine cycle, where I wasn't getting joy from the habit itself, but just satisfying the craving of the addiction. I'm in such a better place now."
In the moment, I might not always fully believe the words I'm saying, but it does help.