Press the tofu for 10-15 minutes to remove excess water. Cut into bite-sized pieces and toss with cornstarch, onion powder, garlic powder, and a pinch of salt.
For the Air Fryer Method: Place tofu in air fryer, drizzle with oil, and cook at 400°F for 12-13 minutes until golden brown.
For the Pan-Fry Method: Heat a large pan over medium-high heat with a thin layer of oil. Fry tofu pieces until crispy and golden brown, about 2-3 minutes per side.