After grating the potatoes, place them in a clean kitchen towel and squeeze out as much moisture as possible. This step is crucial for achieving crispiness.
In a large bowl, combine the grated potatoes, salt, black pepper, garlic powder, onion powder, and olive oil. Mix well until the potatoes are evenly coated.
Preheat your air fryer to 400°F (200°C) for about 5 minutes.
Lightly spray the air fryer basket with cooking spray to prevent sticking.
Spread the potato mixture evenly in the air fryer basket, making sure not to overcrowd it. You may need to cook in batches.
Cook for 15-20 minutes, shaking the basket halfway through, until the hash browns are golden brown and crispy.
Once cooked, remove from the air fryer and serve immediately.