Como conectar a carteira de metamask com js

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