Slice off the tops of the head of garlic so that the tips are cut off but the cloves are still connected and exposed a bit.
Lay a piece of aluminum foil on a flat surface. Layer a similar sized piece of parchment paper on top of the aluminum foil. Place one of the heads of garlic in the middle of the parchment paper and drizzle with olive oil. Season with salt and pepper if using.
Create a foil packet by bringing up the sides of the aluminum foil and parchment paper and folding them or crimping them at the top.
Repeat with the remaining heads of garlic.
Place each packet of garlic in the air fryer. Air fry at 400°F for about 20-25 minutes. Let the packets cool in the air fryer for at least 5 minutes before trying to handle them.
Carefully open each packet and allow to cool further.
Use as desired or store in an airtight container in the refrigerator.
Notes
Roasted garlic cloves can also be stored in oil. Pop the roasted cloves out of the paper casing and place in a small glass container. Cover the cloves with olive oil then affix the lid and store in the refrigerator for up to a month.