You can't mainly because <textarea> separately tracks its own selection, AFAIK.
There is a proposal to add support for this:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/...