Set your Instant Pot to “Sauté” mode. Add 1-2 tbsp of oil, then sauté ginger, garlic, green onions, bay leaves, star anise, and dried chilies (if using) until fragrant.
Add the beef to the pot and sear until browned on all sides.
Stir in diced onions and tomatoes. Add Shaoxing wine, soy sauce, dark soy sauce, sugar, and black pepper. Stir to combine. Continue Sauté for 1-2 minutes to allow the alcohol in the Shaoxing wine to evaporate.