Scrub sweet potatoes under running water, dry them and cut 1/4-inch square sticks as evenly as practical.
Blot the cut fries very dry, toss with oil, optional cornstarch, half the salt and optional spices until no dry starch remains.
Preheat the air fryer to 380°F for 3 minutes if the appliance manual recommends it.
Arrange fries in one loose layer with small gaps; divide into batches instead of piling deeply.
Cook 6 minutes, shake and redistribute, then cook 6 minutes more before beginning 2-minute checks.
Remove fries when edges are browned and the thick centers are fork-tender, usually 12 to 18 minutes total; season with remaining salt and rest uncovered 3 to 5 minutes.