As you see a lot of ways. i spread diatomaceous earth at the base of the tree. If they touch it, they have 9 hours at most to live. I use it mostly to combat the SWD fruit fly, comes in handy for the ants. I have a dust sprayer. I spray all around the figs. Works great for me. Disadvantages are that is stops working when wet, and so is not great for this time of year. You have one day because of morning dew. For ants that is all you need. SWD another story. Wear a mask when using, otherwise completely safe, even to eat. I use food grade, although I have no plans to eat any. Some people do!
Bait stations is another fairly low toxic method with borax, you can make your own with Borax soap. They work well too.