How do I build a reference genome

Hi, if Im interessted in downloading sequences from a region during a specific time frame, and averaging them out, to build a reference genome, and then want to compare that to another reference genome. How would that be accomplished in next strain? I’ve also tried to upload unique covid sequences from ncbi virus to the website interface, under the custom dataset tab, in order to use a new reference genome, but that hasn’t worked either.