I'm using some JavaScript code to enable PC users to send texts to WhatsApp friends:
window.open("https://wa.me/?text=" encodeURIComponent("Hello, world!"));
However, it does work even if a WhatsApp tab is already open - it opens a new tab (forcing the user to reconnect to WhatsApp on a new tab).
Is there an option to use an already open WhatsApp tab (if available)?
Not possible unless you are building a Chrome extension. You may want to checkRetrieve which tabs are open in Chrome?