Step 1 Rinse the beans under cold water, drain and set aside.
Step 2 Heat a wok over high heat. Add the oil, swirl it around in the pan and heat until hot. Add the chiles and garlic and stir-fry until aromatic, about 30 seconds. Add the soybeans and the star anise and stir-fry for 1 minute.
Step 3Add the salt and broth or water and bring to a boil, then reduce the heat and simmer until the beans are very tender, about 7 minutes. (Fresh and frozen take about the same time.) Turn out and serve.