Add star anise, soy sauces, Shaoxing wine, brown sugar, and 2 cups water to the pot. Bring to a simmer, then add the chicken thighs. Cover and simmer for 45 minutes, turning the chicken halfway through.
Make a slurry with the cornstarch and 2 tbsp of water. Add it to the sauce and simmer until thickened