Cut off the woody ends of the asparagus (about 2" worth) or break the ends off where they naturally break.
Put the grill grate in the air fryer/Ninja Foodi and close the lid. Set it to "grill" and set the heat to 510 degrees. Allow it to preheat.
In the meantime, mix the oil and spices in a small dish.
Put the asparagus in the air fryer spreading the pieces out evenly. Use a basting brush to brush the oil mixture on the asparagus (if you don't have a basting brush, toss the oil mixture and asparagus in a medium-sided bowl to coat it evenly).
Close the lid and set the time to 7 minutes. Flip the asparagus halfway through. Watch it closely as it does cook quickly. Note: cook times will vary depending on the thickness of the asparagus.
When the cook time is up, turn off the air fryer and remove the asparagus. Serve.