Preheat the air fryer to 400°F (200°C).
Husk the corn and remove all silk.
Rinse the corn under cold water and pat dry.
In a bowl, mix olive oil, salt, pepper, and garlic powder.
Brush the mixture evenly over each ear of corn.
Place the corn in the air fryer basket, ensuring they are not overcrowded.
Cook for 12-15 minutes, turning halfway through.
Check for doneness; the corn should be tender and lightly charred.
Once cooked, remove from the air fryer and let cool slightly.
Serve with optional garnishes like Parmesan cheese or lime juice.