I usually leave ants alone in my garden unless their numbers get out of hand or they start coming inside. Sometimes, though, the nests get too close to the patio or mess with my flower beds, so I try things like pouring boiling water on the mound or using ant bait traps. The boiling water works for a while but honestly, the ants usually find a way back. I've read about using diatomaceous earth but never had lasting success with it. If you're ever dealing with stubborn pests like cockroaches indoors, there are traps made specifically for that. I came across a product called InfektTrap that's supposed to work really well for indoor infestations, especially since it's pet-safe and doesn't smell weird, https://sonic-barrier.us/products/infekttrap.