isCosmosWallet
helper method for that That way, TypeScript will know which methods etc. are available to you.
wallet.address
property. However, bear in mind that this will only return the main Cosmos address, not the network addresses i.e. Noble, Axelar, etc.
To get the current Cosmos network address, use wallet.connector.getAddress()
which will return the address for the current network.