Set it to 400°F in air fryer and use fresh beans, rinse them, trim the ends, and pat dry. Frozen beans can be used straight from the freezer.
Place them in a bowl and drizzle with olive oil.
Sprinkle with salt and pepper, then toss until evenly seasoned.
Place the beans in a single layer, cooking in batches if needed to avoid crowding.
Cook for 6–10 minutes, shaking the basket halfway through and checking near the end for your preferred browning.
Remove the beans and add extra salt and pepper, if desired. Serve warm.