how to open last closed chrome window code example

Example 1: open previous closed tab chrome

Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose "Reopen closed tab." 
You can also use a keyboard shortcut to accomplish this: 
CTRL + Shift + T on a Window PC or 
Command + Shift + T on a Mac.

Example 2: how to recover closed tabs in chrome

Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose "Reopen closed tab." 
You can also use a keyboard shortcut to accomplish this: 
CTRL + Shift + T on a Window PC or 
Command + Shift + T on a Mac.