You can’t really think your way out of addictions. Rather than talking about recovering from addictions by controlling behavior, Sokuzan teaches addiction awareness meditation. Through sitting meditation practice, by training the mind to observe what is happening in all of the sense fields, mind and body not separate, we are training awareness to see situations as they arise so what to do becomes clear without evaluating or trying to get rid of anything. You need to spend a lot of time training your mind. Dedicate at least an hour a day to your practice.
https://www.youtube.com/watch?v=MSOcl54Gnsk