We had a load of ants in the kitchen in our last house. We moved.
But we had pretty much gotten rid of them by that point.
There had always been ants nest in the garden under some of the patio slabs, but they then started coming into the kitchen. Took a multi pronged approach.
If you can find the main nest outside, poor boiling water down the entrance. Daily. This didn’t get rid of them all but seemed to significantly reduce the numbers.
Nippon gel near the nest to encourage them to feed on that and take it back inside.
Nippon powder as a barrier around the outside of the house, especially if you can find where there are coming in. In our case it was a small hole in the motar under the patio door.
They seemed to be attracted to the food cupboard (not surprisingly), especially where the fruit juice cartons where stored. Thorough clean of kitchen cupboards. Move the really attractive foods to wall cupboards. Lots of talc under the cupboards.
The above stopped them coming in the house and we seemed to have a lot less in the garden too.