Sounds like you have a problem, know you have a problem, are sick of the problem and want to stop.
That's great! it means you are serious about this.
Ok, so we start with what the temptations and triggers are. My guess is screen time. What sucks about the internet is you have friggen porn readily available in EVERY flavor at the drop of a hat. So you will need to limit your screen time.
I assume everyone here is familiar with nofap?
https://forum.nofap.com/index.php4cuck HATED nofap. But if you want to quit jerking off that is the place to go.
good luck.