Pat the thighs very dry with paper towels, especially the skin.
Mix the paprika, garlic powder, onion powder, thyme, salt, pepper and sugar. Rub the thighs with the oil, then with the spice mix on all sides.
Preheat the air fryer to 200°C (400°F) for 3 minutes. For boneless thighs, use 190°C (375°F).
Place the thighs in a single layer, skin side down, with space between them.
Cook bone-in thighs for 10 minutes, flip skin side up, then cook another 8–14 minutes. Boneless thighs: 6–7 minutes, flip, then 6–9 minutes more.
Check the thickest part, away from the bone: at least 74°C (165°F). For the most tender result, take thighs to 79–85°C (175–185°F).
Rest for 5 minutes before serving.