Actually my experience coming from USA was that the first international leg was the critical point. Singapore Airlines needed our PCR test to be 48 hours or less before boarding that flight. This may depend on airlines.
It's only good for outgoing, but gboard is great way to type in Thai, or most any language, into any application. If your friend uses to type in English it's good for both ways.