Nearshore involves outsourcing to countries located nearby and with similar time zones. For example, a nearshore location for Singapore is Vietnam.
Meanwhile, offshore is outsourcing to far-flung countries with huge time-zone differences. A US-based company may offshore to Vietnam, for example.