How do I stop breastfeeding

We

I think I’m done with my breastfeeding journey, it’s been a hard one with having to get my sons tongue tie laser and then quite a few clogged ducts that turned into mastitis today I had a bleb appear. My son wants to constantly nurse and will lift my shirt up. That’s not the problem why I’m done it all the pain I’ve had to go through to be able to nurse. I think it’s time for my boobs to me mine again. I feel like this bleb appearing is the last straw for me in breastfeeding. Anyways made that long. How do I stop nursing him, I’ll nurse him for naps and for bedtime and then he nurses during the day whenever he wants.