Cómo conectar la billetera Metamask con JS

async function connectWallet() {
  const provider = new ethers.providers.Web3Provider(window.ethereum)
  await provider.send("eth_requestAccounts", []);
  const signer = provider.getSigner() 
}
Joel Mathew