func (m Model) Reset() tea.Cmd {
	return func() tea.Msg {
		return resetMsg{}
	}
}
Reset restes the stopwatch to 0.
package stopwatch
import (
	"time"
	tea "github.com/charmbracelet/bubbletea"
)
type TickMsg struct{}
type startStopMsg struct {
	running bool
}
type resetMsg struct{}
type Model struct {
	d time.Duration
	running bool
	Interval time.Duration
}
func NewWithInterval(interval time.Duration) Model {
	return Model{
		Interval: interval,
	}
}
func New() Model {
	return NewWithInterval(time.Second)
}
func (m Model) Init() tea.Cmd {
	return m.Start()
}
func (m Model) Start() tea.Cmd {
	return tea.Batch(func() tea.Msg {
		return startStopMsg{true}
	}, tick(m.Interval))
}
func (m Model) Stop() tea.Cmd {
	return func() tea.Msg {
		return startStopMsg{false}
	}
}
func (m Model) Toggle() tea.Cmd {
	if m.Running() {
		return m.Stop()
	}
	return m.Start()
}