To freeze Thai basil pesto, spoon it into an ice cube tray, filling each compartment about 2/3. Cover the tray with plastic wrap or foil and place it in the freezer. Once the pesto is frozen, remove the cubes from the tray and transfer them to a freezer bag or airtight container. Label and date the container, and store it in the freezer for up to three months.