Pomodoro technique. Basically set a timer to do work for 20 mins (or even 10 minutes), then take a break. Then do it again. Sometimes this can get you over the initial hurdle of getting started. Once you get into the task you may not want to take a break anymore.
A similar trick is if you think of something else to do that’s timewasting, like posting on lemmy (lol), then its ok to do it - but only after working for 10 minutes. You can still do those things but prioritize getting something done first.
Another one: go to the library to work. Initially all you have to do is go, not do the task itself. Then you’re there, and there’s nothing to do except for work. This can turn into card games in the library cafe lol, but then you have to choose a less popular place.
I tried quitting a number of times. Not easy, and demoralizing when you fail. You may have to try several times too.
When I finally did quit I had decided to put off my first cigarette in the morning as long as possible, reasoning that sleep was the longest I’d go without nicotine. One day I went the whole day.
A friend quit at the same time as me, using the gum. Six months later she was still using it, and gave up and started smoking again.
Probably helps that I had quit drinking by then as well. Pretty hard to drink and not smoke, for me.