How to avoid Impulse purchases

So, I immediately buy things (which I think is absolutely necessary) and it remains unused after a few days. How do you guys prevent this?

What I mostly use? Windows laptop (MSI) Pixel (not iphone) Tab - rarely

So, I immediately buy things (which I think is absolutely necessary) and it remains unused after a few days. How do you guys prevent this?

What I mostly use? Windows laptop (MSI) Pixel (not iphone) Tab - rarely