There currently is one option to travel by night train from Egersund (Norway) to Kongsberg (Norway), taking approximately 7 hours: Namely the 726 operated by Go-Ahead Nordic.
Go-Ahead Nordic, part of the Go-Ahead Group, operates passenger train services in Norway.