My grandfather used to shoot them with a .22 after a squirrel broke into his house, are peanuts that were in the counter, a shit all over their living room.
We had an infestation in the attic of our house. The strategy to get rid of them were dehydrating treats and a one-way exit outside.