How to use interface
interface ICounter { function count() external view returns (uint); function increment() external; }
ICounter(_counter).increment();
Ethernaut
How to Call Deployed Contract - Interface | Learn Solidity (0.6)