If keeping the lid in the cookie jar will prevent ants from infesting it, then that could also be efficient with termites.
The best thing you can perform without moving to whole new home should be to spray household with pesticides and hope for the best. https://Ctpedia.org/index.php/Pest_Control_Franchise_-_Is_There_Another_Replacement_Unit