The World Health Organisation has set targets of reducing the transmission of new hepatitis C (HCV) infections by 90%, and ending human immunodeficiency virus-1 (HIV) as a public health threat, by 2030. To achieve this, efficient and timely viral surveillance, and effective public health interventions, are required. Traditional epidemiological methods are largely dependent on the recognition of incident cases with symptomatic illness; acute HIV and HCV infections are commonly asymptomatic, which may lead to delays in the recognition of such new infections. Instead, for these viruses, molecular epidemiology may improve the detection of, and response to, clusters of viral transmission. Molecular epidemiology using historical datasets has highlighted key populations that may have benefitted from a timely intervention. Similar analyses performed on contemporary samples are needed to underpin the 2030 targets, but this requires the generation of a cohesive dataset of viral genome sequences in near-real-time. To generate such data, methodologies harnessing next-generation sequencing (NGS) should be utilised. Here we discuss the opportunity presented by NGS for public health surveillance of HIV and HCV, and discuss three methods that can generate sequences for such analysis. These include full-length genome amplification, utilised for analysis of HCV in the research space; tiling PCR, which was the method of choice for many diagnostic laboratories in the SARS-CoV-2 pandemic; and bait-capture hybridisation, which has been utilised in local HIV outbreaks. These techniques could be applied for near-real-time HIV and HCV surveillance, informing public health strategies that will be key to achieving 2030 targets.