With the nicotine addiction the best method fighting it was Alan Carr's in which you don't rely on your willpower but on your perception. There's a monster in you that feeds on nicotine and it wants more nicotine. With each cigarette you make it happy and you depend on it more. Or you're just a fly falling down the tube of a carnivorous plant and with each cigarette you keep saying it's fine. Such analogies change your perception on how you look at nicotine addiction and helps you overcome it. Of course brain's rewarding mechanism and all the other related neurological/psychological concepts are important too but basically when you try to stop yourself from doing something (like, not smoking) then willpower kicks in and the success rate drops significantly whereas with perception you'll have a better chance.
I see a similar problem with Twitter/TikTok/etc addiction. Only with them the issue is, the more you give from yourself to the platform the more you are addicted to it. I'm not addicted to Twitter, for instance. I follow 70-80 folks and am followed as similar but every time I post something I feel the need/urgency (such as nicotine withdrawal) to follow up, either to check the likes or the replies or whatever. Our brains are so dumb and our egos are so fragile keeping the distance becomes a challenge of its own.
I don't recommend anything. Just keep your minds free.