In addition to the Terro traps I use this stuff to spray around the entire foundation every spring when the ants show up.

Some years two applications but most years one will do it. The brand name is Sevin.

https://www.amazon.com/Sevin-100530122-GardenTech-Insect-Concentrate/dp/B075V9C8LY/ref=sxin_16_pa_sp_search_thematic_sspa?content-id=amzn1.sym.abea0cd6-ddf4-4d67-9781-9599c1d665fc%3Aamzn1.sym.abea0cd6-ddf4-4d67-9781-9599c1d665fc&cv_ct_cx=sevin+insecticide&keywords=sevin+insecticide&pd_rd_i=B075V9C8LY&pd_rd_r=292dfa70-ef71-4651-aad1-aeb81d7749d0&pd_rd_w=wSRMN&pd_rd_wg=vDTjf&pf_rd_p=abea0cd6-ddf4-4d67-9781-9599c1d665fc&pf_rd_r=CWKBA92CXNSE2N1QBGB9&qid=1690576097&sbo=RZvfv%2F%2FHxDF%2BO5021pAnSA%3D%3D&sr=1-4-0cc546a2-7bf2-4d0e-b4ad-0f0d9092fdfc-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9zZWFyY2hfdGhlbWF0aWM&psc=1