How to auto-open app in new tab

After my codespace is started, and my app is running, how can I launch my app in a new tab automatically?