Bring a pot of water to a boil and add 1 teaspoon of salt to the water.
Wash the potatoes well and then boil them for 15-20 minutes until they can easily be pierced with a fork. Dump into a colander and let dry fully for a few minutes.
Add the dried potatoes to a bowl and combine with the oil, remaining 1 teaspoon of salt, pepper, garlic powder and onion powder. Mix well and then transfer to a cutting board.
Using the bottom of a glass, measuring cup or mug, gently press down onto the potatoes until they're about 1/2 inch thick.
Lightly grease the air fryer basket with a spray oil and then gently transfer as many smashed potatoes as will fit in the air fryer basket. Then cook for 6-8 minutes at 400 degrees Fahrenheit. No need to preheat the air fryer.