Whatever works...
I had a 40+ a day habit in 1996 and given a goal I wanted to achieve that was incompatible with smoking it forced me to take drastic (!) action.
Cold Turkey worked for me, it was not nice, not nice at all. In the end the intended goal plus the mind game of "loss" of time, in other words having a cigarette after 24H meant a waste of 24h, this became 48H.... to days..... to weeks...to months.... fortunately now years.
It came down to will power and that was very useful given I did not have to wonder about medication and the effect on my medical.
P.S. After a while it was brilliant not to be twitching at a social event wondering where the smoking corner/location was.