Press the tofu for at least 10-15 minutes and then cube the tofu and place them in a large bowl.
Toss with cornstarch, garlic powder, onion powder, black pepper, and a pinch of salt until evenly coated.
To air fry, transfer the tofu to an air fryer and drizzle or spray with oil (no need to preheat.) Air fry at 400F for 12-13 minutes or until golden brown. Shake the basket occasionally to evenly brown each side.
To pan-fry, heat a pan over medium-high heat and add a thin layer of oil. Fry the tofu in the pan until golden and crispy, about 10-12 minutes.
If serving as a bowl, prepare rice, quinoa, or another grain and any vegetables you'd like to include.
Whisk all sauce ingredients in a small bowl until combined. Set aside.
Pour the sauce into a pan over medium heat, add the crispy tofu, and cook for 2-3 minutes until thick and saucy.
Serve the sweet chili tofu over rice or quinoa with vegetables if making a bowl.