It's not replicating a star. As a quote from wikipedia:
The power production by fusion in the core varies with distance from the solar center. At the center of the Sun, theoretical models estimate it to be approximately 276.5 watts/m3,[41] a power production density that more nearly approximates reptile metabolism than a thermonuclear bomb.[note 2] Peak power production in the Sun has been compared to the volumetric heats generated in an active compost heap. The tremendous power output of the Sun is not due to its high power per volume, but instead due to its large size.
Fusion generators seek to harness this power where temperatures exceed millions of K. And then we use magnetic "bottles" to hold fusion in. The main problem is how to insert more material without breaking containment. As far as I can tell, it's always going to be 50 years away. I'd say that micro-singularity reactors are 'closer' than fusion.