How can we add an "End Chat" button to the chat window?

We would like to have a button that consumers can click on to end the chat once we’ve connected them to a live support guide. Is there a way to add this to the chat window?