I have had problems with both carpenter and little brown ants.
Here in the Northeast carpenter ants are a big problem, they don’t bite but they bore into any wood to make their nests. I had to replace the main beams under my front porch with pressure treated wood because of carpenter ants.
Ortho makes an ant powder which looks like talcum powder and comes in a container like for bread crumbs. I sprinkle it around the openings and wherever I can find where they are coming into the house. It sticks to their bodies and they track it back into the colony and spread it around killing other ants. What it won’t do is kill any ants in the larva stage, so you need to keep the powder sprinkled until all the larva emerge and are killed. It is safe to use indoors. I have found by sprinkling the powder around the opening to the colony, the ants have to walk over the powder to get back into the colony, bringing the powder back into the colony, and they are very determined to get back home.
If you find the colony outdoors and can do it, pour about 4 ounces of gas down the opening and light it, that will burn the colony out, also works great for yellow jacket nests, had one in my back yard, 4 ounces of gas into the opening, lit it and presto, nest gone.
But also the main thing with ants is to keep food off the counters, once their advance scouts find food, they alert the others in the colony to the source and they will keep coming back until you kill them. I have found Raid ant spray effective in both killing them and setting up a barrier to prevent their return