Preheat air fryer to 380 if using shredded or 390 if using patties for 5 minutes.
Spray inside of the basket with olive oil spray and pour or place hash browns inside (with patties don't overlap them). Spray top with olive oil spray too and season with salt and pepper.
Cook for 20 minutes total for shredded, or 9 minutes total for patties flipping them over halfway thru the cooking time.
Remove and serve when they are as golden brown on the outside as you'd like.