The effectiveness lasts from a few weeks to a few months and then reduces over time.
Repeating the same meditation offers only a reduced effect.
This approach by itself works for completely stopping the habit and not for on-going management of the behaviour.