sign out a visual studio online TFS account or on-premise account from visual studio

Here's a simple method to sign out an online or on-premise TFS account from visual studio,

Open Visual Studio -->Views -->Other windows -->Web Browser

enter image description here

Enter the TFS URL and click Signout once the page load complete.

The second method is logged out from “Team Explorer “

enter image description here