The maintenance crew worked overnight to reopen the tunnel by morning.
保守作業員は朝までにトンネルを再開するため一晩中作業しました。
/ˌoʊvɚˈnaɪt/オーバーナイト
夜から翌朝まで、または翌日までに。
The maintenance crew worked overnight to reopen the tunnel by morning.
保守作業員は朝までにトンネルを再開するため一晩中作業しました。

overnightは、ある日の夜から翌朝まで、または翌日までに物事が起こることを表す副詞です。
動詞の後に置き、夜を越す時間幅を示します。
「急に」という比喩的用法ではなく、夜から翌日までの意味です。
stay overnightでは「一泊する」、ship overnightでは「翌日配達で送る」という時間の幅を表します。
基本例文に加えて、用途の異なる3つの場面で使い方を確認します。
The maintenance crew worked overnight to reopen the tunnel by morning.
保守作業員は朝までにトンネルを再開するため一晩中作業しました。
The technicians stayed overnight near the factory after the inspection.
技術者は検査後、工場の近くに一泊しました。
We can send the replacement part overnight at no extra charge.
交換部品は追加料金なしで翌日配達で発送できます。
Let the coating dry overnight before handling the panels.
パネルを扱う前に、塗膜を一晩乾燥させてください。