Bake the tater tots in a 9x13 baking dish according to the package directions until they're deep golden and very crispy. Bake them a little longer than you would if you were eating them on their own. While the tots bake, brown the ground beef and onion in a large skillet over medium-high heat until the beef reaches 160°F, about 10 minutes, then drain off the fat. For the sauce, cook the butter and flour in a medium saucepan over medium heat until fragrant, 3 to 5 minutes. Whisk in the milk and keep whisking until it thickens, about 5 minutes. Take it off the heat, stir in half of the cheese (12 oz) until melted, then stir in the green chile. Keep the sauce warm.
When the tots are done, take them out of the oven and spread the rest of the cheese (12 oz) over the hot tots.
Scatter the beef and onion evenly over the cheese.
Pour the green chile cheese sauce over everything. Cover with foil and return to the hot oven until hot and bubbly, 5 to 10 minutes.
Notes
Before you begin: grate the cheddar and divide it in half, one pile for the sauce and one for the tots.Storage: keep leftovers in an airtight container in the fridge for 3 to 4 days. Reheat in a 350°F oven until hot in the center (165°F).