Drizzle 1 tbsp of olive oil over a cob of corn and using your hands, rub it all over. Sprinkle it with a pinch of salt and pepper. Repeat this for all the cobs.
Arrange the cobs on the pan of your air fryer, and air fry at 400-F for about 10 minutes. Flip the corn over halfway through cooking.
Notes
All air fryers cook differently. Add extra time if necessary to get your corn as roasty and toasty as you like it.