To cook green beans in the air fryer, wash them and trim the ends. Place them in a mixing bowl with spices and oil and mix until coated. Add the beans to the air fryer and cook for 8-11 minutes at 380 degrees Fahrenheit until tender. Personal preference and your air fryer may vary the cooking time.