Store leftover pesto with pasta in an airtight container for 5 days. Or freeze it for 3 months. Reheat on the stove at medium heat with a bit of added water. You can also reheat it in the microwave.