Put on the brakes.
Change your thinking. Stop dwelling on smoking.
Thinking of smoking makes you get closer to doing it.
Bite into a lemon.
Stick your head in the freezer and count slowly backwards from 20.
It takes less time to stop those thoughts than to follow through.
Do this for you.