how to make so chrome open closed tabs automatically

JavaScript
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.
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.
Source

Also in JavaScript: