When an urge hits
An urge rises, peaks and fades on its own. You only have to get through this one.
Let it be here
You don't have to fight this urge or run from it. It is a feeling, and feelings move on when you leave them alone.
Stop and breathe slowly
Pause what you're doing. Breathe slowly and watch the urge like a wave: it builds, it crests, it rolls away.
Remember why
Call to mind your own reasons for quitting. Say them quietly to yourself, one at a time.
Give your mind a small job
Count backwards from 100 in sevens, or name five things you can see around you. Anything simple that needs your attention.