AMENDED AND RESTATED CREDIT AGREEMENT Dated as of December 8, 2017 among NSTAR ELECTRIC COMPANY (DOING BUSINESS AS EVERSOURCE ENERGY), as the Borrower, BARCLAYS BANK PLC, as Administrative Agent and Swing Line Lender, and