Can someone give me advice on how to quit nicotine?

I have been smoking for some time but I quit it to use pouches a year ago and it felt good at first but now I can't stop buying them and now it got to the point where I feel like I can't function properly because of them because I use them daily and when I don't have them I have a bad mood constantly.